home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / gopher / Unix / gopher1.12 / object / Wait.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-01-12  |  1.3 KB  |  51 lines

  1. /********************************************************************
  2.  * $Author: lindner $
  3.  * $Revision: 1.2 $
  4.  * $Date: 1993/01/13 16:22:52 $
  5.  * $Source: /home/mudhoney/GopherSrc/gopher1.11b/object/RCS/Wait.h,v $
  6.  * $State: Rel $
  7.  *
  8.  * Paul Lindner, University of Minnesota CIS.
  9.  *
  10.  * Copyright 1991, 1992 by the Regents of the University of Minnesota
  11.  * see the file "Copyright" in the distribution for conditions of use.
  12.  *********************************************************************
  13.  * MODULE: Wait.h
  14.  * Routines that portably define wait3()
  15.  *********************************************************************
  16.  * Revision History:
  17.  * $Log: Wait.h,v $
  18.  * Revision 1.2  1993/01/13  16:22:52  lindner
  19.  * Fixed wait3 macro to work.
  20.  *
  21.  * Revision 1.1  1992/12/10  23:27:52  lindner
  22.  * gopher 1.1 release
  23.  *
  24.  *
  25.  *********************************************************************/
  26.  
  27.  
  28. /*
  29.  * A header file to portably include the stuff for doing wait3() etal
  30.  */
  31.  
  32. #if defined(_AIX)  /** AIX needs bsd signals.  **/
  33. #define _BSD
  34. #endif
  35.  
  36. #ifdef M_XENIX
  37. #define __SCO_WAIT3__
  38. #endif
  39.  
  40. #include <sys/ioctl.h>
  41. #include <sys/wait.h>
  42. #include <signal.h>
  43.  
  44. #if defined(_SEQUENT_) || defined(POSIXWAIT) || defined(_POSIX_SOURCE)
  45. typedef int Portawait;
  46. #define wait3(a,b,c) waitpid(-1,a,b)
  47. #else
  48. typedef union wait Portawait;
  49. #endif
  50.  
  51.